package com.agree.util.excel.enums;

import com.agree.util.excel.handlers.mapping.params.*;

/**
 * Created by wangmu on 2017/12/10.
 */
public enum GetParamsType {

    INPUT("直接输入",DefaultGetParamsHandler.class),
    FILE("通过文件获取",FileGetParamsHandler.class),
    ALL("所有列都为参数", AllGetParamsHandler.class),
    KEY("主键为参数", KeyGetParamsHandler.class),
    PLACEHOLDER("#{field}",null);

    private final String desc;

    private final Class<? extends GetParamsHandler> handler;

    GetParamsType(String desc, Class<? extends GetParamsHandler> handler) {
        this.desc = desc;
        this.handler = handler;
    }

    public String getDesc() {
        return desc;
    }

    public Class<? extends GetParamsHandler> getHandler() {
        return handler;
    }
}
